﻿<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.Model.Group%>
<%namespace YouHP.Utility%>

<!--header end-->

<script type="text/javascript">
	var opwdok = false;
	var pwdok = false;
	var pwd1ok = false;
	
	function checkform()
	{
		_$("creatform").submit();
	}
</script>	


<!--主体-->
<div class="layout-cols2">


		<div class="box">
		<div class="caption">创建圈子</div>
			<div class="content">
  <%if IsPost%>           
           <div class="msgboxhint">
              <div class="navforumtrue">{MsgboxText}
                            </div>
                        <div>
          
                            <%csharp%>TempUrl="/User/Group/Setting.aspx?gid="+GroupData.Id;<%/csharp%>
                            <a href="{this.GetUrl(TempUrl)}"><font style="font-weight: 700; color:#31600c; text-decoration:underline;">设置我的圈子</font></a>&nbsp;&nbsp;
                 
                            <%csharp%>TempUrl="/User/Group/InviteMember.aspx?gid="+GroupData.Id;<%/csharp%>
                            <a href="{this.GetUrl(TempUrl)}"><font style="font-weight: 700; color:#31600c; text-decoration:underline;">邀请用户加入该圈</font></a>&nbsp;&nbsp;
                 
                            <%csharp%>TempUrl="/Group/Group.aspx?gid="+GroupData.Id;<%/csharp%>
                            <a href="{this.GetUrl(TempUrl)}"><font style="font-weight: 700; color:#31600c; text-decoration:underline;">马上进入圈子</font></a>&nbsp;&nbsp;
                            
                        </div>
                            
                        
           </div>
	
<%else%>

	
		        <form action="" method="post" ID="creatform">
		                        <div class="creategroup">
			                        <table border="0" cellpadding="0" cellspacing="0" class="editboxstyle">
			                        <tr><td>
			                        <label for="groupname">圈子名称：</label></td>
			                        <td>
			                        <input name="groupname" id="groupname" type="text" 
			                               class="colorblue" onfocus="this.className='colorfocus';"
			                               onblur="this.className='colorblue'"
			                               size="20" />&nbsp;<span>不少于4个字,不大于15个字</span>
			                        </td></tr>
				                  
			                         <tr><td>
			                        <label for="groupname">圈子所在地区：</label></td>
			                        <td>
                                            <div id="ui-location" style="display: block; float:left;">
                                            
                                            省份
                                            <select name="province" id="province"  onchange="if(this.value !='') setCity(this.options[this.selectedIndex].value)">

                                            <option value="">-请选择-</option>  

                                            <%csharp%>
                                            foreach(DistrictInfo Info in ProvinceList)
                                            {
                                            <%/csharp%>
                                            <option value="{Info.Id}">{Info.Name}</option>     
                                            <%csharp%>
                                            }
                                            <%/csharp%>
                                            </select>
                                            城市
                                            <select name="city" id ="city">
                                            <option value ="">-请选择-</option>
                                            </select>
                                            </div>&nbsp;<span>填上此项让一个地区的病友人快速找到</span>
			                        </td></tr>
				                    
			                         <tr><td>
			                        <label for="groupname">圈子关联疾病：</label></td>
			                        <td>
			                        <input type="hidden" name="diseaseId" id="dszid"/>
			                        <input name="disease" id="dszname" type="text" 
			                               class="colorblue" onclick="this.className='colorfocus';FloatShow('/pages/alpha/DiseaseHistory/diseaselist.htm',741,582,null,null,null,30);"
			                               onblur="this.className='colorblue'"   readonly="true" 
			                               size="20" />&nbsp;<span>填上此项让和你一样的病友快速找到</span>
			                        </td></tr>
				                    
				                    
				      
			                        <tr><td>
			                        <label for="groupkeyword">圈子关键字：</label></td>
			                        <td>
			                        <textarea name="groupkeyword" id="groupkeyword"
			                               class="colorblue" onfocus="this.className='colorfocus';"
			                               onblur="this.className='colorblue'"
			                              cols="56" rows="3"></textarea>&nbsp;<span>不超过10个字</span>
			                        </td></tr>
			                        <tr><td>
			                        <label for="groupintro">圈子介绍：</label></td>
			                        <td>
			                    
			                        <textarea name="groupintro" id="groupintro" cols="56" rows="3"></textarea> &nbsp;<span>不超过20个字</span>
			                        </td></tr>
			                        <tr><td>
    								
			                        <label for="groupbrowser">浏览权限：</label></td>
			                        <td>
                          <input type="radio" name="groupbrowser" value="0"
                                     class="colorblue" onfocus="this.className='colorfocus';"
                                     onblur="this.className='colorblue'"
                                     checked
                                     />所有人都能浏览 &nbsp;&nbsp;
                          <input type="radio" name="groupbrowser" value="1" 
                                     class="colorblue" onfocus="this.className='colorfocus';"
                                     onblur="this.className='colorblue'"
                                     />只有圈子成员才能浏览
			                        </td></tr>
    								
			                         <tr><td>
			                        <label for="groupjoin">加入权限：</label></td>
			                        <td>
                          <input type="radio" name="groupjoin" value="0"
                                     class="colorblue" onfocus="this.className='colorfocus';"
                                     onblur="this.className='colorblue'"
                                     checked
                                     />加入圈子不需要批准 &nbsp;&nbsp;
                          <input type="radio" name="groupjoin" value="1" 
                                     class="colorblue" onfocus="this.className='colorfocus';"
                                     onblur="this.className='colorblue'"/>加入圈子需要管理员批准
                                </td></tr></table>
    							</div>	
			                        <div style="text-align:center;">
			                       
			                        <input type="button" name="btnSubmit" value="确定" class="buttonstyle" 
			                               ID="btnSubmit" onclick="checkform();"/></div>
    								
		                        </form>
<%/if%>			
			</div>

		</div>

	
	<%template _floatshowd%>
	
</div>
<!--主体-->
<%template _footer%>
